<%@LANGUAGE="JAVASCRIPT"%>
<!--#include file="Connections/connection1.asp" -->


<%
uidsession = Session("userid");

var Recordset1 = Server.CreateObject("ADODB.Recordset");
Recordset1.ActiveConnection = MM_connection1_STRING;
Recordset1.Source = "SELECT *  FROM dbo.EMPLOYEE  WHERE LOGIN_NAME ='"+uidsession+"'";
Recordset1.CursorType = 0;
Recordset1.CursorLocation = 2;
Recordset1.LockType = 1;
Recordset1.Open();
var Recordset1_numRows = 0;
%><%Session("username") = Recordset1.Fields.Item("FULL_NAME").Value;
Session("uid") = Recordset1.Fields.Item("E_ID").Value;
var ids=Recordset1.Fields.Item("E_ID").Value;
%>

<html>

<head>
<title>weblayout</title>
<style type="text/css">
<!--
body {
	background-color: #3173A5;
}
.style1 {font-size: 10pt}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 7.5pt}
.style3 {
	color: #0000FF;
	font-weight: bold;
}
-->
</style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#3173A5">
	<tr>
		<td colspan="15">&nbsp; </td>
		<td><img src="images/spacer.gif" width="1" height="10" alt=""></td>
	</tr>
	<tr>
		<td rowspan="10">&nbsp; </td>
		<td colspan="2">
		<img src="images/weblayout_03.gif" width="121" height="81" alt=""></td>
		<td colspan="2">
		<img src="images/weblayout_04.gif" width="114" height="81" alt=""></td>
		<td colspan="3">
		<img src="images/weblayout_05.gif" width="96" height="81" alt=""></td>
		<td><img src="images/weblayout_06.gif" width="84" height="81" alt=""></td>
		<td><img src="images/weblayout_07.gif" width="78" height="81" alt=""></td>
		<td><img src="images/clock_08.gif" width="69" height="81"></td>
		<td><img src="images/clock_09.gif" width="82" height="81"></td>
		<td colspan="2">
		<img src="images/clock_10.gif" width="84" height="81" alt=""></td>
		<td rowspan="10">&nbsp; </td>
		<td><img src="images/spacer.gif" width="1" height="81" alt=""></td>
	</tr>
	<tr>
		<td colspan="2" rowspan="2">
		<img src="images/weblayout_12.gif" width="121" height="80" alt=""></td>
		<td><img src="images/weblayout_13.gif" width="1" height="1" alt=""></td>
		<td rowspan="2">
		<img src="images/weblayout_14.gif" width="113" height="80" alt=""></td>
		<td colspan="3" rowspan="2">
		<img src="images/weblayout_15.gif" width="96" height="80" alt=""></td>
		<td rowspan="2">
		<img src="images/weblayout_16.gif" width="84" height="80" alt=""></td>
		<td rowspan="2">
		<img src="images/weblayout_17.gif" width="78" height="80" alt=""></td>
		<td rowspan="2"><img src="images/clock_18.gif" width="69" height="80"></td>
		<td rowspan="2"><img src="images/clock_19.gif" width="82" height="80"></td>
		<td colspan="2" rowspan="2">
		<img src="images/clock_20.gif" width="84" height="80" alt=""></td>
		<td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/weblayout_21.gif" width="1" height="79" alt=""></td>
		<td><img src="images/spacer.gif" width="1" height="79" alt=""></td>
	</tr>
	<tr>
		<td rowspan="5" background="images/weblayout_29.gif">&nbsp; </td>
		<td colspan="3" rowspan="5" align="left" valign="top" bgcolor="#A6C4DB">
		<table width="100%" height="70%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="12" height="431" bgcolor="#B5D0E5">&nbsp; </td>
				<td width="95%" valign="top" bgcolor="#D5EAFB">
				<table width="100%" height="85%" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td height="297" valign="top">
						<table width="187" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#D7E9F7" class="menutext">
							<tr>
								<td width="10">&nbsp;</td>
								<td width="171">&nbsp;</td>
								<td width="10">&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td class="menucells">
								<div align="right" class="style1">
									<div align="left" class="menutext">
									</div>
								</div>
								</td>
								<td class="style1">&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td class="menucells">
								<div align="right" class="menutext"><script language="javascript">
								function timecheckin(){
									
									sw = (window.screen.availWidth/2)-(350/2);
									sh = (window.screen.availHeight/2)-(175/2);
									window.open("timecheck.asp","cp","width=350, height=175, scrolbars=0, status=0, left="+sw+" top="+sh+" menu=0");
									}
									
									function chanpw(){
									//window.showModalDialog('pwchange.asp','','dialogWidth:350px; dialogHeight:200px;center:yes; help:no; status:no; edge:raised; scroll:no; unadorned:no');
									sw = (window.screen.availWidth/2)-(350/2);
									sh = (window.screen.availHeight/2)-(200/2);
									window.open("pwchange.asp","cp","width=350, height=200, scrolbars=0, status=0, left="+sw+" top="+sh+" menu=0");
									}
									
									function locateuser(){
									//window.showModalDialog('pwchange.asp','','dialogWidth:350px; dialogHeight:200px;center:yes; help:no; status:no; edge:raised; scroll:no; unadorned:no');
									sw = (window.screen.availWidth/2)-(350/2);
									sh = (window.screen.availHeight/2)-(175/2);
									window.open("locateuser.asp","cp","width=350, height=175, scrolbars=0, status=0, left="+sw+" top="+sh+" menu=0");
									}
								</script>
                                  <div align="left"><a href="#" onClick="chanpw()">change password </a></div>

								</div>
								</td>
								<td class="style1">&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td class="menucells">
								<div align="left"><a href="#" onClick="locateuser();">locate a user</a>	</div>
								</td>
								<td class="style1">&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td class="menucells">
								<div align="left"><a href="#" onClick="viewhelp();">help</a>
								</div>
								</td>
								<td class="style1">&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td align="right" class="menucells">
								<div align="left" class="style2"> 
								</div>
								</td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							  <td class="menucells">
								<div align="left"><a href="goodby.asp">logout</a></div>
							  </td>
								<td>&nbsp;</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td height="10" bgcolor="#B5D0E5">&nbsp;</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td rowspan="5" bgcolor="#B5D0E5">&nbsp; </td>
		<td colspan="7" rowspan="5" valign="top" bgcolor="#A7C5DC">
		<table width="100%" height="78%" border="0" cellpadding="0" cellspacing="0" bgcolor="#A6C4DB">
			<tr>
				<td height="431" valign="top" bgcolor="#D5EAFB">
				<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
					<tr valign="top">
						<td height="12" colspan="3">&nbsp;</td>
					</tr>
					<tr valign="top">
						<td width="3%" rowspan="3">&nbsp;</td>
						<td height="17" valign="middle">
						<div align="right">Employee.
						</div>
						</td>
						<td width="3%" rowspan="3">&nbsp;</td>
					</tr>
					<tr valign="top">
						<td height="25" valign="middle">
						<div align="left">
							WELCOME: <span class="style3"><%=(Recordset1.Fields.Item("FULL_NAME").Value)%></span></div>
						</td>
					</tr>
					<tr valign="top">
						<td height="170">
						<iframe name="i2" src="pending_title.asp" height="200" width="100%" border="0"  allowtransparency="yes" frameborder="0" scrolling="no" marginwidth="1" marginheight="1">
						Your browser does not support inline frames or is currently 
						configured not to display inline frames.
						</iframe></td>
					</tr>
					<tr valign="top">
						<td height="15">&nbsp;</td>
						<td align="left" valign="top">
						<div align="right">
							<script language="javascript">
                a =10;
				function scrolup(){
				a = a-50;
				i2.document.i1.scroll(0,a);
				}
				function scroldn(){
				a = a+50;
				i2.document.i1.scroll(0,a);
				}
function viewhelp(){
  window.open("help.asp","","width=800, height=400, status=1, menu=0, scrollbars=1, resizable=1")
  }
                
                </script>
							<a href="#"><img src="images/up.gif" alt="up" width="15" height="9" onClick="scrolup()" border=0></a>
							<a href="#"><img src="images/dn.gif" alt="down" width="15" height="9" onClick="scroldn()" border=0></a>
						  </div>
						</td>
						<td>&nbsp;</td>
					</tr>
					<tr valign="top">
						<td height="139">&nbsp;</td>
						<td align="left" valign="top">						  <form name="form1" method="post" action="">
						  <div align="center">
						    <p>&nbsp;
					        </p>
						    <p>
							
							
							
	  					
							
							</p>
						    <p>&nbsp;&nbsp;&nbsp;&nbsp;
						      <input type="button" name="timein" value="Change Status"  onClick="timecheckin()">
						    </p>
						  </div>
						</form>
						<div align="center">
						</div>
						<div align="center">
						</div>
						</td>
						<td>&nbsp;</td>
					</tr>
					<tr valign="top">
						<td colspan="3">&nbsp;</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td rowspan="5" background="images/weblayout_27.gif">&nbsp; </td>
		<td><img src="images/spacer.gif" width="1" height="50" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/spacer.gif" width="1" height="2" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/spacer.gif" width="1" height="85" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/spacer.gif" width="1" height="2" alt=""></td>
	</tr>
	<tr>
		<td height="293">
		<img src="images/spacer.gif" width="1" height="293" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/weblayout_31.gif" width="38" height="40" alt=""></td>
		<td colspan="11" background="images/weblayout_33.gif" bgcolor="#A6C4DB">&nbsp;
		</td>
		<td><img src="images/weblayout_35.gif" width="36" height="40" alt=""></td>
		<td><img src="images/spacer.gif" width="1" height="40" alt=""></td>
	</tr>
	<tr>
		<td colspan="13">&nbsp; </td>
		<td><img src="images/spacer.gif" width="1" height="28" alt=""></td>
	</tr>
	<tr>
		<td><img src="images/spacer.gif" width="20" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="38" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="83" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="113" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="27" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="68" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="84" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="78" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="69" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="82" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="48" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="36" height="1" alt=""></td>
		<td><img src="images/spacer.gif" width="32" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<!-- End ImageReady Slices -->

</body>

</html>
<%
Recordset1.Close();
%>
changes made by fareesa